home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
-
- if exist php\php4\phpcli.exe GOTO Normal
- if exist php\php.exe GOTO Unnormal
- if not exist php\php.exe GOTO Abort
-
- :Abort
- echo Sorry ... cannot find php cli!
- echo Must abort these process!
- pause
- GOTO END
-
- :Unnormal
- set PHP_BIN=php\php.exe
- set CONFIG_PHP=install\install.php
- %PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
- GOTO END
-
- :Normal
- set PHP_BIN=php\php4\phpcli.exe
- set CONFIG_PHP=install\install.php
- %PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
- GOTO END
-
- :END
- pause